body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    padding-top: 76px; /* Add padding to prevent content from hiding under fixed navbar */
}

.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-brand {
    color: #4169E1 !important;
    font-weight: 600;
    font-size: 1.3rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #4169E1 !important;
}

/* 统一优化 bi 图标样式 */
.bi {
    font-size: 1.2rem;
    vertical-align: middle;
    font-weight: bold;
    margin-right: 5px;
    display: inline-flex;
    align-items: center;
}

/* 针对导航栏的图标稍大一些 */
.navbar .bi {
    font-size: 1.4rem;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    transition: all 0.3s ease;
}
.login-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
}
.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.login-header h2 {
    color: #4169E1;
    font-weight: 600;
}
.form-control {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.form-control:focus {
    background-color: #f8f9fa;
}
.form-label {
    font-weight: 500;
    color: #333;
}
/* Add style for password input */
#password:not(:placeholder-shown) {
    background-color: #f8f9fa;
}
.btn-primary {
    width: 100%;
    background-color: #4169E1;
    border-color: #4169E1;
    transition: transform 0.2s ease;
    font-weight: 500;
    padding: 0.6rem;
}
.btn-primary:hover {
    transform: translateY(-2px);
    background-color: #3158E2;
}
.register-link {
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
}
.register-link a {
    color: #4169E1;
    text-decoration: none;
    transition: color 0.3s ease;
}
.register-link a:hover {
    color: #3158E2;
}
